/*
 * Project: com.mmall.user.provider.convert
 *
 * File Created at 2019-10-17
 *
 * Copyright 2019 CMCC Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ZYHY Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license.
 */
package com.mmall.product.provider.convert;

import com.mmall.product.api.bo.ProductBO;
import com.mmall.product.provider.model.ProductDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import java.util.List;

/**
 * @author jianghucoding
 * @date 2019-10-17
 */
@Mapper
public interface ProductConvert {

    ProductConvert INSTANCE = Mappers.getMapper(ProductConvert.class);

    @Mappings({})
    ProductBO convert(ProductDO productDO);

    @Mappings({})
    List<ProductBO> convert(List<ProductDO> productDOS);
}
